# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libfprint
pkgver=1.0
pkgrel=1
pkgdesc="fingerprint reader and identification library"
url="https://fprint.freedesktop.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="
	meson
	glib-dev
	libusb-dev
	pixman-dev
	nss-dev
	eudev-dev
	"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/libfprint/libfprint/uploads/aff93e9921d1cff53d7c070944952ff9/libfprint-$pkgver.tar.xz
	fix-stderr.patch
	"

build() {
	meson \
		--prefix /usr \
		--buildtype=plain \
		-Dx11-examples=false \
		-Ddoc=false \
		output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="6a38a691d1f2d5fe19b5bbda9b77321d2e34f1a3aa8b61f38109e0095b28e156cdd7be5ade8f3db8ff26045f8556b68e938b3e1378f4b6d84a2106566e7fdb53  libfprint-1.0.tar.xz
9bd5d606ff9f672507775567c7f71428bb0cd62de61d762979f36e91bc98c1d72569c3d405ed013fa3148300919b36c31c654d376d547cf7829cafeede6abea9  fix-stderr.patch"
